package com.sjgtw.cloud.gateway.service;

import java.io.IOException;
import com.sjgtw.cloud.common.core.exception.CaptchaException;
import com.sjgtw.cloud.common.core.web.domain.AjaxResult;

/**
 * <p>Title: 验证码--服务层--接口</p>
 * <p>Description: </p>
 * @author Admin
 * @date 2021-4-9
 */
public interface IValidateCodeService
{
	/**
	 * 生成验证码
	 */
	public AjaxResult createCapcha() throws IOException, CaptchaException;

	/**
	 * 校验验证码
	 */
	public void checkCapcha(String key, String value) throws CaptchaException;
}
